<?php

namespace app\api\controller\company;
use app\shop\service\company\Interview as InterviewService;
/**
 * 团队风采
 */
class Interview
{

    public function lists(InterviewService $InterviewService)
    {
        $data = input();
        return $InterviewService->list($data);
    }

    public function info(InterviewService $InterviewService)
    {
        $id = input('id');
        return $InterviewService->info($id);
    }

    public function form(InterviewService $InterviewService)
    {
        $id = input('id');
        return $InterviewService->form($id);
    }

    public function save(InterviewService $InterviewService)
    {
        $data = input();
        $data['add_user'] = request()->user_id;
        return $InterviewService->save($data);
    }

    public function saveLog(InterviewService $InterviewService)
    {
        $data = input();
        return $InterviewService->saveLog($data);
    }

    public function offer(InterviewService $InterviewService)
    {
        $id = input();
        return $InterviewService->offer($id);
    }
}